package com.sboot.springboot_demo.controller;

import com.sboot.springboot_demo.service.ZipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/**
 * @author luheng
 * @create 2019/8/14
 */
@RestController
public class ZipController {
    @Autowired
    private ZipService zipService;

    @RequestMapping("/create")
    public void createZip(HttpServletResponse response) {
        System.out.println("开始.......");
        zipService.create(response);
        System.out.println("结束.......");
    }
}
